package com.thoughtworks.bytecode2class.constantpool;

import com.thoughtworks.bytecode2class.ClassReader;

public class IntegerConstant extends Constant {

    private int value;

    public IntegerConstant(ClassReader classReader) {
        super(classReader);
        value = classReader.forwardWord();
    }

    public int getValue() {
        return value;
    }

    public void description() {
        System.out.printf("[%d]IntegerConstant - %s%n", getCount(), value);
    }

}
